package com.fz.us.oa.core.entity.com;

import com.fz.us.admin.company.entity.BaseFlowEntity;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by dzw on 2017/12/4.
 * 合同履约登记表
 */
@Entity
@Table(name = "ec_contractPerform")
public class ContractPerform extends BaseFlowEntity {
    private static final long serialVersionUID = -3640700181595935675L;

    /**
     * 合同成交登记
     */
    private ContractDeal contractDeal;
    /**
     * 客户信息表
     */
    private CustomerInfo customerInfo;
    /**
     * 签约时间
     */
    private Date signDate;
    /**
     * 合同金额
     */
    private BigDecimal contractMoney;

    @ManyToOne(fetch = FetchType.LAZY)
    public ContractDeal getContractDeal() {
        return contractDeal;
    }

    public void setContractDeal(ContractDeal contractDeal) {
        this.contractDeal = contractDeal;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    public CustomerInfo getCustomerInfo() {
        return customerInfo;
    }

    public void setCustomerInfo(CustomerInfo customerInfo) {
        this.customerInfo = customerInfo;
    }

    public Date getSignDate() {
        return signDate;
    }

    public void setSignDate(Date signDate) {
        this.signDate = signDate;
    }

    public BigDecimal getContractMoney() {
        return contractMoney;
    }

    public void setContractMoney(BigDecimal contractMoney) {
        this.contractMoney = contractMoney;
    }
}
